package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateAddNewParam implements Serializable {

    @NotNull(message = "必须提交属性模板名称！")
    @ApiModelProperty(value = "属性模板名称",required = true)
    private String name;

    @NotNull(message = "必须提交属性模板拼音！")
    @ApiModelProperty(value = "属性模板拼音",required = true)
    private String pinyin;


    private String keywords;

    @NotNull(message = "必须提交属性模板序号")
    @Range(max = 99, message = "排序序号值必须在0-99之间")
    @ApiModelProperty(value = "属性模板序号,必须是1-255之间的数字",required = true,example = "97" )
    private Integer sort;


}
